package com.hyy.backend.dao;

import com.hyy.backend.entity.Knowledge;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface KnowledgeMapper {
    int insertKnowledge(Knowledge knowledge);
    List<Knowledge> getKnowledgeByUserId(Integer userId);
    Knowledge selectById(@Param("id") Integer id);
    List<Knowledge> getAllVisiblePosts();
    int updateById(Knowledge knowledge);


}
